﻿using System;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.PlayerController
{
    [RequireComponent(typeof(Collider))]
    public class PlayerBargeComponent : MonoBehaviour
    {
        public static Action<Collision> onCollisionEnter;
        public static Action<Collision> onCollisionStay;

        public void OnCollisionEnter(Collision collision)
        {
            onCollisionEnter?.Invoke(collision);
        }

        public void OnCollisionStay(Collision collision)
        {
            onCollisionStay?.Invoke(collision);
        }
    }
}